package com.itcast.applet.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "购物车实体类")
public class Shopping {

    @ApiModelProperty("主键值")
    private Long id;

    @ApiModelProperty("关联userId")
    private Long userId;

    @ApiModelProperty("购物车总价格")
    private Double price;

    @ApiModelProperty("购物车总数量")
    private Integer number;
}
